package dao;

import entity.Retreat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface retreatDao {
    //添加退货信息
    public void addretreat(Retreat retreat);
    //根据单号和名称展示没有审核的信息
    public List<Retreat> showRetreat(@Param("th") String th,@Param("seat") String seat,@Param("repertoryName") String repertoryName,@Param("offset") int offset,@Param("limit") int limit);
    //根据单号和名称查询总条数
    public int showtotal(@Param("th") String th,@Param("seat") String seat,@Param("repertoryName") String repertoryName);
    //审核退货信息
    public void upretreat(@Param("reteeatid") int Reteeatid,@Param("th") String th,@Param("aname") String aname);
    //根据退货编号查看详情信息
    public Retreat showretreats(@Param("reteeatid") int Reteeatid);
    //根据单号和名称展示审核完的信息
    public List<Retreat> showRetreats(@Param("seat") String seat,@Param("repertoryName") String repertoryName,@Param("offset") int offset,@Param("limit") int limit);
    //根据单号和名称查询总条数
    public int showtotals(@Param("seat") String seat,@Param("repertoryName") String repertoryName);
}
